com.supermap.ar.areffect.preset
Class ARGeoHorizontalRegion
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- com.supermap.ar.areffect.preset.ARGeoHorizontalRegion
-
public class ARGeoHorizontalRegion extends ARGeometry
The plane geometry object. The class describes the regional entity using one or multiple ordered points.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.preset.ARGeometry
ARGeometry.ARGeometryType
-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
Constructor Summary
Constructors Constructor and Description ARGeoHorizontalRegion()Construction methodARGeoHorizontalRegion(BaseShape.MatType matType)Construction method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPart(java.util.List<Point3D> pointList)voidaddPoint3D(int part, int index, Point3D point3D)voidclear()Clears objectsvoiddeletePoint3D(int part, int index)voiddrawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)Draws geometric objectsvoiddrawRegion(GeoRegion geometry)Draws geometric objectsvoiddrawRegion(java.util.List<Point3D> pointList)Draws AR polygons (on horizontal plane)GeoRegiongetGeoRegion()Gets regional objects.AREffectElementgetParentElement()Get the parent nodePoint2DsgetPart(int index)Returns the sub object with the specified index in the object in the form of an ordered point collection.floatgetPartArea(int partIndex)Gets the area of the specified sub object.Point3DgetPartCenterPoint(int partIndex)Gets the geometric center of the specified sub object.intgetPartCount()Returns the number of the sub objects of the objectsPoint2DsgetPartPoint2Ds(int index)Gets the geographic coordinate point collection object of the child object of the specified indexfloatgetRenderHeight()Gets the rendering heightvoidresetGeometry()Resetting geometry objectsvoidsetParentNode(AREffectElement element)Setting the parent nodevoidsetParentNode(EffectView arView)Setting the parent nodevoidsetRenderHeight(float renderHeight)Sets the rendering heightvoidupdatePoint3D(int part, int index, Point3D point3D)-
Methods inherited from class com.supermap.ar.areffect.preset.ARGeometry
getPartPoint3Ds, getPartShape, getType, isEdit, select, setEdit, setSelectionColor, unSelect
-
Methods inherited from class com.supermap.ar.areffect.preset.BaseShape
getColor, getColorRGBA, getMetallic, getRadius, getReflectance, getRoughness, getSelectionColor, getShapeMaterial, getShapeStyle, getTextureMap, isRenderable, isSelected, isShadowCaster, isShadowReceiver, setColor, setColor, setColor, setMetallic, setRadius, setReflectance, setRenderable, setRoughness, setShadowCaster, setShadowReceiver, setShapeStyle, setTextureMap, updateMaterial
-
-
-
-
Constructor Detail
-
ARGeoHorizontalRegion
public ARGeoHorizontalRegion()
Construction method
-
ARGeoHorizontalRegion
public ARGeoHorizontalRegion(BaseShape.MatType matType)
Construction method- Parameters:
matType- texture type (transparent/opaque)
-
-
Method Detail
-
addPart
public void addPart(java.util.List<Point3D> pointList)
-
drawRegion
public void drawRegion(java.util.List<Point3D> pointList)
Draws AR polygons (on horizontal plane)- Parameters:
pointList- End-to-end point set
-
drawRegion
public void drawRegion(GeoRegion geometry)
Draws geometric objects- Parameters:
geometry- The plane geometry object.
-
drawRegion
public void drawRegion(float startUpAzimuth, Location startUpLocation, GeoRegion geometry)Draws geometric objects- Parameters:
startUpAzimuth- the start azimuthstartUpLocation- the start positiongeometry- The plane geometry object.
-
getGeoRegion
public GeoRegion getGeoRegion()
Gets regional objects.- Returns:
-
getRenderHeight
public float getRenderHeight()
Gets the rendering height- Returns:
-
setRenderHeight
public void setRenderHeight(float renderHeight)
Sets the rendering height- Parameters:
renderHeight-
-
clear
public void clear()
Clears objects- Overrides:
clearin classARGeometry
-
getPart
public Point2Ds getPart(int index)
Returns the sub object with the specified index in the object in the form of an ordered point collection.- Parameters:
index-- Returns:
-
getPartCount
public int getPartCount()
Returns the number of the sub objects of the objects- Overrides:
getPartCountin classARGeometry- Returns:
-
getPartArea
public float getPartArea(int partIndex)
Gets the area of the specified sub object.- Parameters:
partIndex-- Returns:
-
getPartCenterPoint
public Point3D getPartCenterPoint(int partIndex)
Gets the geometric center of the specified sub object.- Parameters:
partIndex-- Returns:
-
resetGeometry
public void resetGeometry()
Description copied from class:ARGeometryResetting geometry objects- Overrides:
resetGeometryin classARGeometry
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)- Overrides:
updatePoint3Din classARGeometry
-
addPoint3D
public void addPoint3D(int part, int index, Point3D point3D)- Overrides:
addPoint3Din classARGeometry
-
deletePoint3D
public void deletePoint3D(int part, int index)- Overrides:
deletePoint3Din classARGeometry
-
getPartPoint2Ds
public Point2Ds getPartPoint2Ds(int index)
Description copied from class:ARGeometryGets the geographic coordinate point collection object of the child object of the specified index- Returns:
-
setParentNode
public void setParentNode(AREffectElement element)
Setting the parent node- Parameters:
element-
-
setParentNode
public void setParentNode(EffectView arView)
Setting the parent node- Parameters:
arView-
-
getParentElement
public AREffectElement getParentElement()
Get the parent node- Returns:
-
-